<% content_for :title do %>忘记密码<% end %>

<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post,:class=>"form-horizontal" }) do |f| %>

<% if resource.errors.any? %>
 <%= render :partial=>'/layouts/errors', :locals=>{:errors=>resource.errors}%>
<% end %>



<div class="form-group">
  <label class="col-sm-2 control-label">用户邮箱</label>
  <div class="col-sm-4">
    <%= f.email_field :email, autofocus: true,:class=>"form-control" %>
  </div>
</div>

<div class="form-group">
  <div class="col-sm-offset-2 col-sm-10">
    <%= f.submit "发送重置密码邮件",:class=>"btn btn-default btn-primary" %>
    <hr/>
    <%= link_to "返回登录", new_session_path(resource_name) %>
  </div>
</div> 


<% end %>

